<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php $module = $sf_context->getModuleName(); ?>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <?php include_http_metas() ?>
        <?php include_metas() ?>
        <?php include_title() ?>

        <?php include_stylesheets() ?>
        <?php if (file_exists(sfConfig::get('sf_web_dir').'/css/'.$module.'.css')) : ?>
            <link rel="stylesheet" href="/css/<?php echo $module ?>.css" />
        <?php endif; ?>

        <script type="text/javascript">
            var Config = <?php echo json_encode(sfYaml::loadConfig('configJS')) ?>
        </script>
            
        <?php include_javascripts() ?>

    </head>

    <body>

        <div id="page-content">
          <?php echo $sf_content ?>
        </div>

        <?php include_partial('global/header') ?>
        <?php include_partial('global/menu') ?>
        <?php include_partial('global/page_header') ?>
        <?php include_partial('global/footer') ?>

        <?php if (file_exists(sfConfig::get('sf_web_dir').'/js/modules/'.$module.'.models.js')) : ?>
            <script type="text/javascript" src="/js/modules/<?php echo $module ?>.models.js"></script>
        <?php endif; ?>
        <?php if (file_exists(sfConfig::get('sf_web_dir').'/js/modules/'.$module.'.js')) : ?>
            <script type="text/javascript" src="/js/modules/<?php echo $module ?>.js"></script>
        <?php endif; ?>

        <div id="overlay"></div>
    </body>

</html>
